import Vue from 'vue'
Vue.directive('err', {
  bind(el, binding) {
    el.onerror = function() {
      console.log('我裂开了！')
      el.src = require('../assets/common/子羽.jpg')
    }
  }

})
Vue.directive('errplus', {
  bind(el, binding) {
    el.onerror = function() {
      console.log('我裂开了！')
      el.src = binding.value
    }
  }

})
